Convert GIF animations to MP4 for smaller file sizes#259
Merged
Conversation
ddf0686 to
2322f60
Compare
2322f60 to
eeaed5c
Compare
Replace large GIF files with compressed MP4 videos to reduce repository size and improve page load performance. Converted files: - blog/explore-philadelphia2.gif → .mp4 - blog/lc.gif → .mp4 - blog/overture-lc.gif → .mp4 (unused, removed) - divisions/divisions-us.gif → .mp4 Updated pages: - blog/2024-05-16-land-cover.mdx - blog/2024-07-24-explore-site.mdx - docs/guides/divisions.mdx Updated CI workflows: - lint_queries.yml - production_deploy_documentation.yml - staging_deploy.yaml All pages now use <video> elements with autoPlay, loop, and muted attributes to maintain the same user experience as the original GIFs.
eeaed5c to
9b48035
Compare
Collaborator
|
Looks good! Thanks for this maintenance! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Media Optimization and Code Linting Updates
Summary
This PR optimizes media assets and applies linting improvements to reduce repository size and improve site performance.
Changes
🎬 GIF to MP4 Conversions (Major Size Reduction)
Replaced large animated GIFs with compressed MP4 videos. Pages now use
<video>elements withautoPlay,loop, andmutedattributes to maintain the same user experience.explore-philadelphia2.gif→.mp4lc.gif→.mp4overture-lc.gif→.mp4divisions-us.gif→.mp4🖼️ Image Compressions
Optimized PNG and JPG files for faster loading:
address-coverage-h3-jan.pngbootleg.jpgdivisions-admin0-admin1-coverage.pngoverture-tiles-header.pngplaces-coverage-h3-jan.png📄 Updated Pages
blog/2024-05-16-land-cover.mdx— Updated to use<video>forlc.mp4blog/2024-07-24-explore-site.mdx— Updated to use<video>forexplore-philadelphia2.mp4docs/guides/divisions.mdx— Updated to use<video>fordivisions-us.mp4⚙️ CI Workflow Updates
.github/workflows/lint_queries.yml.github/workflows/production_deploy_documentation.yml.github/workflows/staging_deploy.yaml🧹 Code Linting (JS Components)
Applied linting/formatting improvements to:
src/components/buildings-map.jssrc/components/layers.jssrc/components/map.jssrc/components/queryBuilder.jssrc/components/yamlLoad.js📊 Static Data Updates
static/theme-definitions-table.htmlstatic/theme_definitions.jsonTesting
npm run buildcompletes successfully